<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="jquery/jquery-3.2.1.min.js"></script>
</head>
<body>

<!-- <form>
          <div><input type="text" name="a" value="1" id="a" /></div>
          <div><input type="text" name="b" value="2" id="b" /></div>
          <div><input type="hidden" name="c" value="3" id="c" /></div>
          <div>
            <textarea name="d" rows="8" cols="40">4</textarea>
          </div>

          <div>
          <select name="e">
            <option value="5" selected="selected">5</option>
            <option value="6">6</option>
            <option value="7">7</option>
          </select>
          </div>

          <div>
            <input type="checkbox" name="f" value="8" id="f" />
          </div>

          <div>
            <input type="submit" name="g" value="Submit" id="g" />
          </div>

        </form> -->
        <a href="http://www.baidu.com" title="">点我</a>
        <input type="text" name="">
    <script>

    $(function()
    {
        $("form").submit(function() {
         var result=$('form').serializeArray();
        $.each(result,function(index,element)
        {
            console.log(element.value);
        })
          return false;


    });
         $("a").mousedown(function(e){
            alert(e.which);
            return false;
        })
         $('input').keyup(function(e)
         {
            alert(e.which);
         })

    })


    </script>
</body>
</html>
